package com.caigou.comm.base.ext

import java.text.SimpleDateFormat
import java.util.*

/**
 * @author #Suyghur.
 * Created on 2022/02/22
 */

fun date2ts(date: String): Long {
    val sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault())
    return sdf.parse(date).time
}